package com.niit.bc.dao;

import com.niit.bc.bean.OrderBean;

import javax.sql.RowSet;

public interface OrderDao {
    /*根据userId查找订单*/
    public RowSet searchOrder(int userId);

    public RowSet searchPrice(String orderId);

    //向数据库中插入订单
    public int insertOrder(OrderBean orderBean, int userId);

    /**
     * 更新订单表
     */
    public int updateOrders(OrderBean orderBean, String orderId);

    /**
     * 根据订单号查询订单
     */
    public RowSet searchOrder(String orderId);
}
